package com.zy.db.odbc.Enum;

import lombok.Getter;

@Getter
public enum FieldTypeEnum {
    TINYINT("tinyint"),
    SMALLINT("smallint"),
    MEDIUMINT("smallint"),
    INT("int"),
    INTEGER("integer"),
    BIGINT("bigint"),
    TIMESTAMP("timestamp"),
    VARCHAR("varchar"),

    ;

    private String code;

    FieldTypeEnum(String code) {
        this.code = code;
    }

    public Boolean equals(String name) {
        return this.name().equals(name);
    }
}